RF_getPlayerData.OnServerInvoke=function(D)local n=database.GetCachedProfile(D.UserId)return n end RF_vehicleSpawnRequest.OnServerInvoke=function(D)return vehicles.SpawnPlayerVehicle(D,1)end RF_vehicleRemoveRequest.OnServerInvoke=function(D)return vehicles.RemovePlayerVehicle(D)end RF_redeemCode.OnServerInvoke=function(D,n)return twitter.RedeemCode(D,n)end RF_GetUnlockedWeapons.OnServerInvoke=function(D)return weapons.GetUnlockedWeapons(D)end RF_GetWeaponInfo.OnServerInvoke=function(D,n)return weapons.GetWeaponInfo(D,n)end RF_GetEquipedWeapon.OnServerInvoke=function(D)return weapons.GetEquipedWeapon(D)end RF_EquipWeapon.OnServerInvoke=function(D,n)return weapons.EquipWeapon(D,n)end RF_UnEquipWeapon.OnServerInvoke=function(D)return weapons.UnEquipWeapon(D)end RF_BuyWeapon.OnServerInvoke=function(D,n)return weapons.BuyWeapon(D,n)end RF_DamageVehicle.OnServerInvoke=function(D,n,X)return damageReplicator.ApplyDamageToVehicle(n,X)end
-- Remote Functions Client -> Server
-- Getters
RF_getPlayerData.OnServerInvoke = function(player)
	local cahced = database.GetCachedProfile(player.UserId)
	return cahced
end
RF_vehicleSpawnRequest.OnServerInvoke = function(player)
	return vehicles.SpawnPlayerVehicle(player, 1)
end
RF_vehicleRemoveRequest.OnServerInvoke = function(player)
	return vehicles.RemovePlayerVehicle(player)
end
RF_redeemCode.OnServerInvoke = function(player, code)
	return twitter.RedeemCode(player, code)
end

-- Weapons
RF_GetUnlockedWeapons.OnServerInvoke = function(player)
	return weapons.GetUnlockedWeapons(player)
end
RF_GetWeaponInfo.OnServerInvoke = function(player, weaponID)
	return weapons.GetWeaponInfo(player, weaponID)
end
RF_GetEquipedWeapon.OnServerInvoke = function(player)
	return weapons.GetEquipedWeapon(player)
end

RF_EquipWeapon.OnServerInvoke = function(player, weaponID)
	return weapons.EquipWeapon(player, weaponID)
end
RF_UnEquipWeapon.OnServerInvoke = function(player)
	return weapons.UnEquipWeapon(player)
end
RF_BuyWeapon.OnServerInvoke = function(player, weaponID)
	return weapons.BuyWeapon(player, weaponID)
end
-- Bullet
RF_DamageVehicle.OnServerInvoke = function(player, bullet, hitVehicle)
	return damageReplicator.ApplyDamageToVehicle(bullet, hitVehicle)
end
