Add tips
This commit is contained in:
@@ -95,4 +95,68 @@ function showAccountHelpMessage(client) {
|
||||
messageClientInfo(client, "- Visit a mechanic garage to repair, colour, and tune up your car!");
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showEnteredDriverSeatHelpTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.enteredDriverSeat) {
|
||||
//messageClientInfo(client, `Press ${serverConfig.keybindText.vehicleEngineKey} for engine, ${serverConfig.keybindText.vehicleLightsKey} for lights, and ${serverConfig.keybindText.vehicleLockKey} for door locks`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.enteredDriverSeat;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showApproachJobWhileUnemployedTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.approachJobWhileUnemployed) {
|
||||
//messageClientInfo(client, `Approach the icon and press ${serverConfig.keybindText.actionKey} to see info about this job.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.approachJobWhileUnemployed;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showTakeNearbyJobTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.takeJobWhileUnemployed) {
|
||||
//messageClientInfo(client, `Use /takejob to take this job.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.takeJobWhileUnemployed;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showApproachCurrentJobTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.approachCurrentJob) {
|
||||
//messageClientInfo(client, `Press ${serverConfig.keybindText.actionKey} to start working, or hold ${serverConfig.keybindText.actionKey} to quit your job.`);
|
||||
//messageClientInfo(client, `Use /startwork to start working, or /quitjob to quit your job.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.approachCurrentJob;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showStartedWorkingTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.startedWorking) {
|
||||
messageClientInfo(client, `Press ${serverConfig.keybindText.actionKey} to change uniform, or hold ${serverConfig.keybindText.actionKey} to stop working.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.startedWorking;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showApproachOwnedVehicleTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.approachOwnedVehicle) {
|
||||
messageClientInfo(client, `Press ${serverConfig.keybindText.actionKey} to see vehicle info, or press ${serverConfig.keybindText.vehicleLockKey} to lock and unlock the vehicle.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.approachOwnedVehicle;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function showApproachAnyVehicleTip(client) {
|
||||
if(getClientData(client).accountData.shownTips & !shownTipsFlags.approachAnyVehicle) {
|
||||
messageClientInfo(client, `Press ${serverConfig.keybindText.actionKey} to see vehicle info.`);
|
||||
getClientData(client).accountData.shownTips = getClientData(client).accountData.shownTips | shownTipsFlags.approachAnyVehicle;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user